package remote;

import java.io.Serializable;
import java.util.Date;

/**
 * Classe repr��sentant un Tweet
 *
 */
public class Tweet implements Serializable{
	private String Htag;
	private String content;
	private Date date;
	private String author;
	
	public Tweet(String htag, String content) {
		super();
		Htag = htag;
		this.content = content;
	}

	public String getHtag() {
		return Htag;
	}

	public void setHtag(String htag) {
		Htag = htag;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date d) {
		this.date = d;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Override
	public String toString() {
		return "("+author+") #" + Htag + ": " + content+"\n";
	}
}
